package com.wlsk.license.dto.request;

import com.wlsk.license.common.enums.CacheTypeEnum;
import com.wlsk.license.dto.BaseReqDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @description:本地缓存操作请求
 * @author: liuzhangbin
 * @date: 2025/2/17
 */
@Getter
@Setter
@ApiModel(value = "本地缓存操作请求")
public class LocalCacheOptReqDto extends BaseReqDto {

    @ApiModelProperty("缓存类型")
    @NotNull(message = "缓存类型不能为空")
    private CacheTypeEnum cacheType;

    @ApiModelProperty("缓存key")
    private String key;

}
